package com.gzhryc.shared_device.oem.code.member.dao.db;

import com.gzhryc.jdbc.annotaion.*;
import com.gzhryc.shared_device.common.device.dao.db.Device;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员常用网点
 * @version 2023-10-21
 */
@NumberBranchTable(keyFieldName = "memberId")
@Table(name = "member_common_device")
public class MemberCommonDevice implements Serializable {

    private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Column(name = "member_id", notNull = true, note = "会员ID")
    protected Long memberId;
	
	@PrimaryKey
    @Column(name = "device_sn", notNull = true, note = "设备ID")
    protected String deviceSn;

    @Column(name = "member_name",length = 64,note = "会员名称")
    protected String memberName;

    @Column(name = "place_id", notNull = true, note = "网点ID")
    protected Long placeId;

    @Column(name = "create_date")
    protected Date createDate;

    @Join(fromField = "device_sn",toField = "device_sn")
    protected Device device;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

	public Long getPlaceId() {
        return placeId;
    }

    public void setPlaceId(Long placeId) {
        this.placeId = placeId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Device getDevice() {
        return device;
    }

    public void setDevice(Device device) {
        this.device = device;
    }
}
